From: Richard M. Stallman Date: Sun, 13 Jun 1993 19:16:02 +0000 (+0000) Subject: (c-indent-line): Call c-backward-to-start-of-if X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95344 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=eca5b04cf9929953c4a711795703ff8bd063e5d7;p=emacs.git (c-indent-line): Call c-backward-to-start-of-if in the case of else following a close brace. --- diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 8c32229a299..198e430f60a 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -544,6 +544,7 @@ Return the amount the indentation changed by." (setq indent (save-excursion (forward-char) (backward-sexp) + (c-backward-to-start-of-if) (current-indentation)))) ((and (looking-at "while\\b") (save-excursion